//
//  LXDIsSingerModel.m
//  BLDMusics
//
//  Created by lxd on 16/4/5.
//  Copyright © 2016年 李晓丹. All rights reserved.
//

#import "LXDIsSingerModel.h"

@implementation LXDIsSingerModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"onlineTime"]) {
        NSString *time = [NSString stringWithFormat:@"%@", value];
        NSDate *date = [NSDate dateWithTimeIntervalSince1970:[[time substringToIndex:(time.length - 3)] integerValue]];
        NSLog(@"%@",date);
        NSString *str = [[NSString stringWithFormat:@"%@", date] substringToIndex:10];
        self.date = [str stringByReplacingOccurrencesOfString:@"-" withString:@"."];
        
    }
}


@end
